/*
 * @Description: 应用管理
 * @Author: xinqiao lxq1990.0716@qq.com
 * @Date: 2024-03-06
 * @LastEditors: 何伟伦 weilun@ssc-hn.com
 * @LastEditTime: 2024-03-26
 */
import request from '/@/api/request'

/** 应用管理，分页查询 */
export const requestAppList = (data: ApplyListTypes.IRequest) => {
  return request.post<IPaginationResponse<ApplyListTypes.IResponse[]>>('/system/app/config/getAppList/V1', data)
}

/** 应用管理，创建应用 */
export const requestSaveAppInfo = (data: ApplyAddTypes.IRequest) => {
  return request.post<IBaseResponse<ApplyAddTypes.IResponse>>('/system/app/config/saveAppInfo/V1', data)
}

/** 应用管理，修改配置 */
export const requestUpdateAppInfo = (data: ApplyUpdateTypes.IRequest) => {
  return request.post<IBaseResponse<ApplyUpdateTypes.IResponse>>('/system/app/config/updateDevelopConfig/V1', data)
}

/** 应用管理，权限设置 */
export const requestUpdateAccessPermissions = (data: ApplyUpdatePermissionsTypes.IRequest) => {
  return request.post<IBaseResponse<ApplyUpdatePermissionsTypes.IResponse>>('/system/app/config/updateAccessPermissions/V1', data)
}
